<html>
    <head>
        <title>hello world</title>
    </head>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

    <body>
        <h1>hello word!!!</h1>
        <p>this is a html page</p>
        <button id="button">click me</button>
    </body>
    <script>
        let elementById = document.getElementById("button");


        elementById.addEventListener("click",function () {
            axios.get("http://localhost:8080/test").then(function (response) {
                console.log(response.data);
            })
        })

    </script>
</html>